package com.citycloud.datac.mq.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @RequestMapping(
            path = { "/test" },
            method = {RequestMethod.GET, RequestMethod.POST}
    )
    @ResponseBody
    public String test(){
        return "this is a test!";
    }

    @RequestMapping(
            path = { "/abc" },
            method = {RequestMethod.GET, RequestMethod.POST}
    )
    @ResponseBody
    public String test2(){
        return "this is a test2!";
    }





}
